package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.TaskAssessmentMapper;
import com.ruoyi.ies.domain.TaskAssessment;
import com.ruoyi.ies.service.ITaskAssessmentService;

/**
 * 任务考核Service业务层处理
 * 
 * @author July
 * @date 2023-06-12
 */
@Service
public class TaskAssessmentServiceImpl implements ITaskAssessmentService 
{
    @Autowired
    private TaskAssessmentMapper taskAssessmentMapper;

    /**
     * 查询任务考核
     * 
     * @param workName 任务考核主键
     * @return 任务考核
     */
    @Override
    public TaskAssessment selectTaskAssessmentByWorkName(String workName)
    {
        return taskAssessmentMapper.selectTaskAssessmentByWorkName(workName);
    }

    /**
     * 查询任务考核列表
     * 
     * @param taskAssessment 任务考核
     * @return 任务考核
     */
    @Override
    public List<TaskAssessment> selectTaskAssessmentList(TaskAssessment taskAssessment)
    {
        return taskAssessmentMapper.selectTaskAssessmentList(taskAssessment);
    }

    /**
     * 新增任务考核
     * 
     * @param taskAssessment 任务考核
     * @return 结果
     */
    @Override
    public int insertTaskAssessment(TaskAssessment taskAssessment)
    {
        return taskAssessmentMapper.insertTaskAssessment(taskAssessment);
    }

    /**
     * 修改任务考核
     * 
     * @param taskAssessment 任务考核
     * @return 结果
     */
    @Override
    public int updateTaskAssessment(TaskAssessment taskAssessment)
    {
        return taskAssessmentMapper.updateTaskAssessment(taskAssessment);
    }

    /**
     * 批量删除任务考核
     * 
     * @param workNames 需要删除的任务考核主键
     * @return 结果
     */
    @Override
    public int deleteTaskAssessmentByWorkNames(String[] workNames)
    {
        return taskAssessmentMapper.deleteTaskAssessmentByWorkNames(workNames);
    }

    /**
     * 删除任务考核信息
     * 
     * @param workName 任务考核主键
     * @return 结果
     */
    @Override
    public int deleteTaskAssessmentByWorkName(String workName)
    {
        return taskAssessmentMapper.deleteTaskAssessmentByWorkName(workName);
    }
}
